/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class Treadmill {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070010';
    }

    get categoryName() {
        return '\u8dd1\u6b65\u673a';
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p0croEZR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSlope(params) {
        return command({
            method: 'getSlope',
            methodId: 'p3deKWnk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSpeed(params) {
        return command({
            method: 'getSpeed',
            methodId: 'pdNCa8Pq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'phEqjJJx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pBTQq9hW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetRange(params) {
        return command({
            method: 'getTargetRange',
            methodId: 'pz93zIxo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTime(params) {
        return command({
            method: 'getTargetTime',
            methodId: 'pkpD9zR1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setContinue(params) {
        return command({
            method: 'setContinue',
            methodId: 'pgh0HTsG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'p1vZRvaV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPause(params) {
        return command({
            method: 'setPause',
            methodId: 'peH3fACr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSlope(params) {
        return command({
            method: 'setSlope',
            methodId: 'pUPQldIZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSpeed(params) {
        return command({
            method: 'setSpeed',
            methodId: 'ppAXPrld',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pDrhTN63',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetRange(params) {
        return command({
            method: 'setTargetRange',
            methodId: 'pGoxILVS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTime(params) {
        return command({
            method: 'setTargetTime',
            methodId: 'pZgunZkL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default Treadmill;
